package com.whtq.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * Created by
 * @author wmi
 * @date 2021/9/14 - 09:20.
 * @description
 */
@SpringBootApplication
@MapperScan(basePackages = "com.whtq.db.mapper")
@ComponentScan(basePackages = {"com.whtq.front.common","com.whtq.api.handler","com.whtq.api.service"}
        ,excludeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE)})
@EnableTransactionManagement
@EnableFeignClients(basePackages = {"com.whtq.api.remote"})
public class WHTQApiApplication {

    public static void main(String[] args) {
        System.out.println("-------whtq-api begin------");
        SpringApplication.run(WHTQApiApplication.class, args);
        System.out.println("-------whtq-api end------");
    }

}
